package com.joysuch.wwyt.dzhapi.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author JamesZY
 * @since 2021-12-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_bp_depart")
@ApiModel(value="BpDepart对象", description="")
public class ApiBpDepartBean extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "部门名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "负责人")
    @TableField("CHIEF_ID")
    private Long chiefId;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "上级部门")
    @TableField("PARENT_ID")
    private Long parentId;

    @ApiModelProperty(value = "代码")
    @TableField("CODE")
    private String code;

    @ApiModelProperty(value = "类型：0:group(集团),1:分公司，2：工厂,3:部门")
    private Integer type;

    @ApiModelProperty(value = "子部门下一个编号")
    private Integer childNo;

    @ApiModelProperty(value = "不同系统同步唯一标识ID")
    private String uniqueId;

    @ApiModelProperty(value = "是否已和人员在岗在位同步数据 默认0 否; 1 是")
    private Boolean locateSync;

    @ApiModelProperty(value = "44 不显示")
    private Integer showState;


}
